package com.lihaozhe.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lihaozhe.dto.Role;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author 李昊哲
 * @version 1.0
 * 2021/12/2 15:32
 */
@Mapper
public interface RoleMapper extends BaseMapper<Role> {
    /**
     * 用户用户ID获取该用户的角色列表
     *
     * @param uid 用户ID
     * @return
     */
    List<Role> selectRolsByUid(@Param("uid") Long uid);
}